package net.wang.cloud.order.repo;


import net.wang.cloud.order.domain.Order;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.time.ZonedDateTime;
import java.util.List;

@Repository
public interface OrderRepo extends JpaRepository<Order, Long> {
    List<Order> findByCustomerId(long customerId);

    Order findByUuid(String uuid);

    List<Order> findByStatusAndCreateAtBefore(String aNew, ZonedDateTime checkTime);
}
